import Login from "../views/login/index";
import SetPwd from "../views/setpwd/index";
import Home from "../views/home/index";
import Exam from "../views/exam/index";
import Result from "../views/result/index";

export const pageIndex = {
  login: 0,
  setpwd: 1,
  home: 2,
  exam: 3,
  result: 4,
};

/**
 * 路由信息
 * @type {[{path: string, name: string, page: (function(*): JSX.Element)}]}
 */
export const pages = [
  {
    name: "login",
    path: "/login",
    page: Login,
  },
  {
    name: "setpwd",
    path: "/setpwd",
    page: SetPwd,
  },
  {
    name: "home",
    path: "/home",
    page: Home,
  },
  {
    name: "exam",
    path: "/exam",
    page: Exam,
  },
  {
    name: "result",
    path: "/result",
    page: Result,
  },
];
